@extends('layouts.admin.application')

@section('css')
    <link rel="stylesheet" href="/vendor/daterangepicker/daterangepicker.css">
@endsection

@section('content')

    <div class="admin-content">

        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">囤票活动列表</strong> /
                <small>Add</small>
            </div>
        </div>
        <hr>
        @include('admin._flash')

        <div class="am-g">
            <div class="am-u-sm-12 am-u-md-12">

                <form class="am-form" action="/admin/addOrUpdateHoarding" method="post">
                    {{ csrf_field() }}


                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            特惠价
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-input-sm" name="discount_price" value="{{old('discount_price')}}">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">如：如1888元直接填写1888</div>
                    </div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            折扣
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-input-sm" name="discount_ratio" value="{{old('discount_ratio')}}">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">如：如8.5折直接填写8.5</div>
                    </div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            门票数量
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-input-sm" name="ticket_total" value="{{old('ticket_total')}}">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">如：如20张直接填写20</div>
                    </div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            有效天数
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-input-sm" name="days" value="{{old('days')}}">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">如：如30天直接填写30</div>
                    </div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            活动开始时间
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-form-field" name="start_time" value="{{old('start_time')}}" placeholder="请选择活动结束时间"  data-am-datepicker="{theme: 'warning'}" readonly />
                        </div>
                        <div class="am-hide-sm-only am-u-md-6"></div>
                    </div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            活动结束时间
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-form-field" name="end_time" value="{{old('end_time')}}" placeholder="请选择活动结束时间"  data-am-datepicker="{theme: 'success'}" readonly />
                        </div>
                        <div class="am-hide-sm-only am-u-md-6"></div>
                    </div>

                    <div class="am-g am-margin-top sort">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            是否上架
                        </div>
                        <label class="am-btn am-btn-default am-btn-xs am-round">
                            <input type="radio" name="is_over" value="1" checked> 是
                        </label>
                        <label class="am-btn am-btn-default am-btn-xs am-round">
                            <input type="radio" name="is_over" value="0">否
                        </label>
                    </div>
                   {{-- <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            操作员
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-input-sm" name="contro">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6"></div>
                    </div>--}}


                    <div class="am-margin">
                        <button type="submit" class="am-btn am-btn-primary am-radius">提交保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>


@endsection
@section('js')
    <script src="/vendor/html5-fileupload/jquery.html5-fileupload.js"></script>
    <script src="/js/upload.js"></script>



    <script>
        $(function () {
//文件上传
            //文件上传





        })


    </script>
@endsection